package org.xjc.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author : xjc
 * @Description : 因为使用了jpa，所以要用Column和Table，但是又用来mybatis-plus，又要加TableName和TableField,
 * 如果不用mybatis-plus，可以使用tk-batis，可以不用设置TableName和TableField
 * @since : 2022-07-26
 */
@Data
@NoArgsConstructor
@AllArgsConstructor

@Entity
@Table(name = "T_ERROR_LOG")
@TableName("T_ERROR_LOG")
public class ErrorLog extends BaseEntity {

    @Column(name = "DESCRIPTION", columnDefinition = "varchar2(255)")
    @TableField("DESCRIPTION")
    private String description;

    @Column(name = "METHOD", columnDefinition = "varchar2(255)")
    @TableField("METHOD")
    private String method;

    @Column(name = "PARAMS", columnDefinition = "CLOB")
    @TableField("PARAMS")
    private String params;

    @Column(name = "THROWABLE", columnDefinition = "CLOB")
    @TableField("THROWABLE")
    private String throwable;


}